﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace V5_EaspLibs.FrameWork.Model {
    /// <summary>
    /// 部件项
    /// </summary>
    public class ModelWidget {
        private string _Name = string.Empty;
        private string _Label = string.Empty;
        private string _Description = string.Empty;
        private string _Icon = string.Empty;
        private string _DefaultType = string.Empty;
        private string _WidgetDir = string.Empty;
        private List<WidgetItemType> _ListWidgetItemType = new List<WidgetItemType>();
        public string Name {
            get { return _Name; }
            set { _Name = value; }
        }
        public string Label {
            get { return _Label; }
            set { _Label = value; }
        }
        public string Description {
            get { return _Description; }
            set { _Description = value; }
        }
        public string Icon {
            get { return _Icon; }
            set { _Icon = value; }
        }
        public string DefaultType {
            get { return _DefaultType; }
            set { _DefaultType = value; }
        }
        public string WidgetDir {
            get { return _WidgetDir; }
            set { _WidgetDir = value; }
        }
        public List<WidgetItemType> ListWidgetItemType {
            get { return _ListWidgetItemType; }
            set { _ListWidgetItemType = value; }
        }
        /// <summary>
        /// 部件集合
        /// </summary>
        public class WidgetItemType {
            private string _Name = string.Empty;
            private string _Label = string.Empty;
            private string _File = string.Empty;
            public string Name {
                get { return _Name; }
                set { _Name = value; }
            }
            public string Label {
                get { return _Label; }
                set { _Label = value; }
            }
            public string File {
                get { return _File; }
                set { _File = value; }
            }
        }
    }
}
